package xzit.gcxy.xxhzx.zhh.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

import xzit.gcxy.xxhzx.zhh.client.Client;
import xzit.gcxy.xxhzx.zhh.common.ResourceUtil;
import xzit.gcxy.xxhzx.zhh.dao.SystemDao;
import xzit.gcxy.xxhzx.zhh.entity.APPNavigatorVO;
import xzit.gcxy.xxhzx.zhh.entity.ManagedAccountVO;
import xzit.gcxy.xxhzx.zhh.service.SystemService;

@Service("systemService")
public class SystemServiceImpl extends BaseServiceImpl implements SystemService {

	@Autowired
	private SystemDao systemDao;

	public ManagedAccountVO getUserByNameAndPassword(ManagedAccountVO user) {

		return systemDao.getUserByNameAndPassword(user);
	}

	public <T> T findUniqueByProperty(Class<T> entityClass, String propertyName, Object value) {
		return systemDao.findUniqueByProperty(entityClass, propertyName, value);
	}

	public APPNavigatorVO getAPPRootByNameAndPassword() {
		// TODO Auto-generated method stub
		return systemDao.getAPPRootByNameAndPassword();
	}

}
